package com.sentiment.mail;

import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.List;

public class TestMail {
	public static void main(String[] args) throws UnsupportedEncodingException
	{
	    StringBuffer theMessage = new StringBuffer();
	    theMessage.append("<a href='http://www.baidu.com'>邮件测试！收到请回复谢谢！这是邮件测试！</a>");
	    theMessage.append("Test sendMessage!");
	    theMessage.append("在一个遥远的地方有一个好姑娘!");
	    List<String> toMail = new ArrayList<String>();
	    String str1="931094193@qq.com";
	    String str2="1547073674@qq.com";
		toMail.add(str1);
		toMail.add(str2);
		String subject = "This is a test!";
	//	toMail.add("1547073674@qq.com");
	//	SendMailOnTime.sendMail(str1,subject, theMessage.toString());
	//	SendMailOnTime.sendMail(theMessage.toString());
		
		SendMailOnTime.sendMail(toMail, subject, theMessage.toString());

	}
}
